package net.csdn.business.common.domain.request.webhook;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import net.csdn.business.common.enums.WebhookEnum;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName SendMessageDTO
 * @Description TODO
 * @Author zhangyl
 * @Date 2023/7/4 15:30
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SendMessageDTO implements Serializable {

    /**
     * 触发事件的主体id
     */
    private String targetId;

    /**
     * 触发事件的主体类型:{@link net.csdn.business.common.enums.WebhookEnum.TargetTypeEnum}
     */
    private WebhookEnum.TargetTypeEnum targetType;
    /**
     * 事件类型:{@link net.csdn.business.common.enums.WebhookEnum.EventTypeEnum}
     */
    private WebhookEnum.EventTypeEnum eventType;
    /**
     * 请求的Payload：
     */
    private String payload;
    /**
     * webHookList：
     */
    private List<String> webHookList;
}
